Skip to content

Commit 2808c89

Browse files
author
Noyel Seth
committed
[fix] add default user-agent data in HTTP Post method
1 parent 902c7c2 commit 2808c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp8266.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def doHttpGet(self,host,path,user_agent="RPi-Pico", port=80):
459459
return 0, None
460460

461461

462-
def doHttpPost(self,host,path,user_agent,content_type,content,port=80):
462+
def doHttpPost(self,host,path,user_agent="RPi-Pico",content_type,content,port=80):
463463
"""
464464
This fucntion use to complete a HTTP Post operation
465465

0 commit comments

Comments
 (0)