Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use WEB_PORT define instead of hardcoded "80" string #358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hugows
Copy link

@hugows hugows commented Mar 23, 2017

No description provided.

@vlad-ivanov-name
Copy link
Contributor

@UncleRus could you please take a look at this?

@@ -21,7 +21,7 @@
#include "ssid_config.h"

#define WEB_SERVER "chainxor.org"
#define WEB_PORT 80
#define WEB_PORT "80"
#define WEB_URL "http://chainxor.org/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A Host header may be needed too and the port included in that. e.g. "Host: chainxor.org:8000" Might be nice to avoid the host name duplication too. So perhaps keep the port as a number and use snprintf to build up the headers.

@UncleRus
Copy link
Member

UncleRus commented Apr 1, 2017

Agreed with @ourairquality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants