Skip to content

Commit

Permalink
Using PSTR
Browse files Browse the repository at this point in the history
  • Loading branch information
yoav-klein committed Sep 25, 2021
1 parent cd29a31 commit e23c368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AudioFileSourceHTTPStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ bool AudioFileSourceHTTPStream::open(const char *url)
}
if (http.hasHeader("Transfer-Encoding")) {
audioLogger->printf_P(PSTR("Transfer-Encoding: %s\n"), http.header("Transfer-Encoding").c_str());
if(http.header("Transfer-Encoding") == String("chunked")) {
if(http.header("Transfer-Encoding") == String(PSTR("chunked"))) {

next_chunk = getChunkSize();
if(-1 == next_chunk)
Expand Down Expand Up @@ -142,7 +142,7 @@ uint32_t AudioFileSourceHTTPStream::readChunked(void *data, uint32_t len, bool n
len -= pos;
if(!verifyCrlf())
{
audioLogger->printf("Couldn't read CRLF after chunk, something is wrong !!\n");
audioLogger->printf(PSTR("Couldn't read CRLF after chunk, something is wrong !!\n"));
return 0;
}
next_chunk = getChunkSize();
Expand Down

0 comments on commit e23c368

Please sign in to comment.