Skip to content

Commit

Permalink
Add user agent to URI
Browse files Browse the repository at this point in the history
  • Loading branch information
auralia committed Jan 3, 2017
1 parent 8d8505f commit d2226f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/classes/nsweb.html
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in web.ts:403</li>
<li>Defined in web.ts:404</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
3 changes: 2 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ export class NsWeb {
let request = https.request(
{
host: "www.nationstates.net",
path: "/",
path: "/?userAgent=" + encodeURIComponent(
this.userAgent),
method: "POST",
headers
},
Expand Down

0 comments on commit d2226f0

Please sign in to comment.