Skip to content

Commit

Permalink
Revert 'User-Agent' back to Mozilla string, bespoke value appears to …
Browse files Browse the repository at this point in the history
…be conflicting
  • Loading branch information
doulikecookiedough committed Oct 27, 2024
1 parent dcd0551 commit 6a9ac1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public ArrayList<String> findDataPids(NodeReference nodeId, String identifier) t
connection.setRequestMethod("GET");
connection.setRequestProperty("Accept", "application/xml");
// A user-agent is necessary otherwise we will get a http 403 forbidden error
connection.setRequestProperty("User-Agent", "MetadigEngine/feature-hashstore-support");
connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36");
if (dataOneAuthToken != null) {
connection.setRequestProperty("Authorization", "Bearer " + dataOneAuthToken);
}
Expand Down

0 comments on commit 6a9ac1d

Please sign in to comment.