Skip to content

Commit

Permalink
Fixes #2789 Add Referer to API call
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Apr 25, 2017
1 parent 4e25cc6 commit aede131
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public boolean processQuery(String query, ImportInspector dialog, OutputPrinter
//add request header
dl.addHeader("Accept", "application/json");
dl.addHeader("Content-Type", "application/json");
dl.addHeader("Referer", "http://ieeexplore.ieee.org/search/searchresult.jsp");

// set post data
dl.setPostData(postData);
Expand Down

0 comments on commit aede131

Please sign in to comment.