1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-02 18:13:21 +00:00

Merge pull request #379 from SquidDev-CC/hotfix/nil-errors

Fix incorrect null check in HTTP API
This commit is contained in:
Daniel Ratcliffe 2017-07-25 19:00:25 +01:00 committed by GitHub
commit 44a5284dd6

View File

@ -143,7 +143,7 @@ public void run()
connection.setRequestProperty( "content-type", "application/x-www-form-urlencoded; charset=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() )
{