mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-10-02 17:00:47 +00:00
Merge pull request #379 from SquidDev-CC/hotfix/nil-errors
Fix incorrect null check in HTTP API
This commit is contained in:
commit
44a5284dd6
@ -143,7 +143,7 @@ public class HTTPRequest implements HTTPTask.IHTTPTask
|
|||||||
connection.setRequestProperty( "content-type", "application/x-www-form-urlencoded; charset=utf-8" );
|
connection.setRequestProperty( "content-type", "application/x-www-form-urlencoded; charset=utf-8" );
|
||||||
connection.setRequestProperty( "content-encoding", "UTF-8" );
|
connection.setRequestProperty( "content-encoding", "UTF-8" );
|
||||||
}
|
}
|
||||||
if( m_postText != null )
|
if( m_headers != null )
|
||||||
{
|
{
|
||||||
for( Map.Entry<String, String> header : m_headers.entrySet() )
|
for( Map.Entry<String, String> header : m_headers.entrySet() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user