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

webserver improvements #12072

Merged
merged 9 commits into from
May 10, 2017
Merged

Conversation

Montellese
Copy link
Member

While looking into what's new in libmicrohttpd I also read through the code in CWebServer et al. and did some code cleanup / refactoring.

The only functional change (which should not make any difference for clients) is bf9126f which replaces our "custom" handling of basic authentication with the one provided by libmicrohttpd.

The rest of the changes are refactorings which move code blocks into separate methods to make the libmicrohttpd callback implementations more readable and some C++11-ifying.

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the Code guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have added tests to cover my change
  • All new and existing tests passed

@Montellese Montellese added Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v18 Leia labels May 10, 2017
@MartijnKaijser
Copy link
Member

jenkins build this please

std::multimap<std::string, std::string> getValues;
HTTPRequestHandlerUtils::GetRequestHeaderValues(request.connection, MHD_GET_ARGUMENT_KIND, getValues);

CLog::Log(LOGDEBUG, "CWebServer[%hu] [IN] %s %s %s", m_port, request.version, GetHTTPMethod(request.method).c_str(), request.pathUrlFull.c_str());

This comment was marked as spam.

This comment was marked as spam.

@Rechi
Copy link
Member

Rechi commented May 10, 2017

jenkins build this please

@MartijnKaijser
Copy link
Member

compiled now.

@MartijnKaijser MartijnKaijser added this to the L 18.0-alpha1 milestone May 10, 2017
@Montellese Montellese merged commit 577435d into xbmc:master May 10, 2017
@Montellese Montellese deleted the webserver_improvements branch May 10, 2017 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants