Skip to content

Commit

Permalink
fix headers prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
icebaker committed May 21, 2023
1 parent 879eab9 commit 2cd9c9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Default.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"NANO_BOTS_API_ADDRESS": "http://localhost:3048",
"NANO_BOTS_STREAM": true,
"NANO_BOTS_USER_IDENTIFIER": "sublime-text/anonymous"
"NANO_BOTS_USER_IDENTIFIER": "anonymous"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Once you have access to the Nano Bots API, you can go to "Preferences" -> "Setti
{
"NANO_BOTS_API_ADDRESS": "http://localhost:3048",
"NANO_BOTS_STREAM": true,
"NANO_BOTS_USER_IDENTIFIER": "sublime-text/your-name"
"NANO_BOTS_USER_IDENTIFIER": "anonymous" // your-name
}
```

Expand Down
2 changes: 1 addition & 1 deletion nanobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def create_connection(hostname, port, timeout):
def create_headers(config):
return {
'Content-type': 'application/json',
'NANO_BOTS_USER_IDENTIFIER': config['NANO_BOTS_USER_IDENTIFIER']}
'NANO_BOTS_USER_IDENTIFIER': 'sublime-text/' + config['NANO_BOTS_USER_IDENTIFIER']}

@staticmethod
def create_json(params):
Expand Down

0 comments on commit 2cd9c9a

Please sign in to comment.