File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 52
52
with requests .post ('http://localhost:7654/api/compute' , json = {'description' : 'PWNED' , 'code' : code }) as r :
53
53
print (r , r .content )
54
54
assert (r .status_code == 201 )
55
- token = r .headers ['X-BCS -Token' ]
55
+ token = r .headers ['X-DCS -Token' ]
56
56
57
- with requests .get ('http://localhost:7654/api/compute' , headers = {'X-BCS -Token' : token }) as r :
57
+ with requests .get ('http://localhost:7654/api/compute' , headers = {'X-DCS -Token' : token }) as r :
58
58
print (r , r .content )
59
59
assert (r .status_code == 200 )
60
60
61
- with requests .get ('http://localhost:7654/api/compute' , headers = {'X-BCS -Token' : 'ructfructfructfructfructfructfru' }) as r :
61
+ with requests .get ('http://localhost:7654/api/compute' , headers = {'X-DCS -Token' : 'ructfructfructfructfructfructfru' }) as r :
62
62
print (r , r .content )
63
63
assert (r .status_code == 200 )
64
64
@@ -74,7 +74,7 @@ def get_token_from_path(p):
74
74
if t == '' :
75
75
continue
76
76
77
- with requests .get ('http://localhost:7654/api/compute' , headers = {'X-BCS -Token' : t }) as r :
77
+ with requests .get ('http://localhost:7654/api/compute' , headers = {'X-DCS -Token' : t }) as r :
78
78
assert (r .status_code == 200 )
79
79
80
80
f = json .loads (r .content .decode ('utf-8' ))["description" ]
Original file line number Diff line number Diff line change
1
+ requests == 2.28.2
2
+
You can’t perform that action at this time.
0 commit comments