You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
In the method sendAlert() I think the header is wrong:
HttpWReq.Headers.Add("ContentType", "text/plain");
I think it should be
HttpWReq.Headers.Add("Content-Type", "text/plain");
I get an error on my bb device when receiving a push message:
Missing Content-type header for push
EDIT. I receive an error after changing ContentType to Content-Type:
Error: System.ArgumentException: The 'Content-Type' header must be modified using the appropriate property or method.
Parameter name: name
at System.Net.WebHeaderCollection.ThrowOnRestrictedHeader(String headerName)
at System.Net.WebHeaderCollection.Add(String name, String value)
The text was updated successfully, but these errors were encountered:
In the method sendAlert() I think the header is wrong:
HttpWReq.Headers.Add("ContentType", "text/plain");
I think it should be
HttpWReq.Headers.Add("Content-Type", "text/plain");
I get an error on my bb device when receiving a push message:
Missing Content-type header for push
EDIT. I receive an error after changing ContentType to Content-Type:
Error: System.ArgumentException: The 'Content-Type' header must be modified using the appropriate property or method.
Parameter name: name
at System.Net.WebHeaderCollection.ThrowOnRestrictedHeader(String headerName)
at System.Net.WebHeaderCollection.Add(String name, String value)
The text was updated successfully, but these errors were encountered: