Skip to content

Commit 48d0ba5

Browse files
authored
Removed Accept Header
Closes #5
1 parent 9c92941 commit 48d0ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pushover.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ boolean Pushover::send(void) {
5353
String post = String("token=")+_token+"&user="+_user+"&title="+_title+"&message="+_message+"&device="+_device+"&url="+_url+"&url_title="+_url_title+"&priority="+_priority+"&retry="+_retry+"&expire="+_expire+"&sound="+_sound;
5454
if (_timestamp != 0) post += String("&timestamp=")+_timestamp;
5555
if (_html == true) post += String("&html=1");
56-
String http = String("POST /1/messages.json HTTP/1.1\r\nHost: api.pushover.net\r\nConnection: close\r\nAccept: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nContent-Length: ")+post.length()+"\r\n\r\n"+post;
56+
String http = String("POST /1/messages.json HTTP/1.1\r\nHost: api.pushover.net\r\nConnection: close\r\nContent-Length: ")+post.length()+"\r\n\r\n"+post;
5757
client.print(http);
5858
int timeout_at = millis() + _timeout;
5959
while (!client.available() && timeout_at - millis() < 0) {

0 commit comments

Comments
 (0)