File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4343
4444
4545# Custom header
46- HEADER = "\n " .join (
46+ HEADER = "\r \ n " .join (
4747 [
4848 f"GET { query } HTTP/1.1" ,
4949 f"Host: { host } " ,
5050 "Custom-Header-Name: Custom-Data" ,
5151 "Content-Type: application/json" ,
52- "Content-Length: 0\n " ,
53- "\n \n " ,
52+ "Content-Length: 0" ,
53+ "\r \n " ,
5454 ]
5555)
5656
Original file line number Diff line number Diff line change 4646payload = json .dumps (DATA_TO_POST )
4747
4848# Custom header
49- HEADER = "\n " .join (
49+ HEADER = "\r \ n " .join (
5050 [
5151 f"POST /{ query } HTTP/1.1" ,
5252 f"Host: { host } " ,
5353 "Custom-Header-Name: Custom-Data" ,
5454 "Content-Type: application/json" ,
55- f"Content-Length: { len (payload )+ 1 } " ,
56- "\n \n " ,
55+ f"Content-Length: { len (payload ) + 1 } " ,
56+ "\r \n " ,
5757 ]
5858)
5959
You can’t perform that action at this time.
0 commit comments