Skip to content

Commit 1dee23b

Browse files
committed
Fixed bug introduced by the renaming, because Cosm haven't renamed their ApiKey header yet
1 parent 8305b94 commit 1dee23b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CosmClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int CosmClient::put(CosmFeed& aFeed, const char* aApiKey)
1616
int ret = http.put("api.cosm.com", path);
1717
if (ret == 0)
1818
{
19-
http.sendHeader("X-CosmApiKey", aApiKey);
19+
http.sendHeader("X-PachubeApiKey", aApiKey);
2020

2121
CountingStream countingStream; // Used to work out how long that data will be
2222
for (int i =kCalculateDataLength; i <= kSendData; i++)
@@ -76,7 +76,7 @@ int CosmClient::get(CosmFeed& aFeed, const char* aApiKey)
7676
int ret = http.get("api.cosm.com", path);
7777
if (ret == 0)
7878
{
79-
http.sendHeader("X-CosmApiKey", aApiKey);
79+
http.sendHeader("X-PachubeApiKey", aApiKey);
8080
http.endRequest();
8181

8282
ret = http.responseStatusCode();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy