René's URL Explorer Experiment


Title: [BUG] deferred_response never sends content string passed to constructor · Issue #331 · etr/libhttpserver · GitHub

Open Graph Title: [BUG] deferred_response never sends content string passed to constructor · Issue #331 · etr/libhttpserver

X Title: [BUG] deferred_response never sends content string passed to constructor · Issue #331 · etr/libhttpserver

Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description The deferred_response constructor include...

Open Graph Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description T...

X Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues D...

Opengraph URL: https://github.com/etr/libhttpserver/issues/331

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] deferred_response never sends content string passed to constructor","articleBody":"### Prerequisites\r\n\r\n* [X] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=\u0026q=repo%3Aetr%2Flibhttpserver\u0026type=Issues\r\n\r\n### Description\r\n\r\nThe `deferred_response` constructor includes a `const std::string\u0026 content = \"\"` parameter that is documented as:\r\n\u003e Besides the callback, optionally, you can provide a content parameter that sets the initial message sent immediately to the client.\r\n\r\nThe `content` parameter is passed to the base class `string_response` constructor where it is assigned to the `content` member but never actually consumed because `string_response::get_raw_response()` is never called.\r\n\r\nThis behavior might appear to have been removed by https://github.com/etr/libhttpserver/commit/ed0841d177d88dada6e21e4dd5c36f8b670c1ee0 in #145, but it likely didn't work even in https://github.com/etr/libhttpserver/commit/eea93bdf45c42ffbb487f06385ab6a7647bc0a5f because `get_raw_response()` is a virtual function.\r\n\r\nThe tests don't expect the content parameter to be sent either: https://github.com/etr/libhttpserver/blob/d249ba682441dbb979146482aff01a7073ed165a/test/integ/deferred.cpp#L164\r\n\r\nAt this point in the interest of bug compatibility maybe just change the parameter name from \"content\" to \"unused\" and fix the docs.\r\n\r\n### Steps to Reproduce\r\n\r\nSend a `deferred_response` with a non-empty `content` argument such as https://github.com/etr/libhttpserver/blob/d249ba682441dbb979146482aff01a7073ed165a/test/integ/deferred.cpp#L103\r\n\r\n**Expected behavior:** Content argument is transmitted.\r\n\r\n**Actual behavior:** Content argument is ignored.\r\n\r\n**Reproduces how often:** 100%\r\n\r\n### Versions\r\n\r\n* OS version `Linux hydrol2 4.18.0-477.15.1.el8_8.x86_64 #1 SMP Fri Jun 2 08:27:19 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux`\r\n* libhttpserver verion 0.18.2 compiled\r\n* libmicrohttpd version 0.9.71 compiled\r\n \r\n### Additional Information\r\n\r\n\r\n","author":{"url":"https://github.com/jcphill","@type":"Person","name":"jcphill"},"datePublished":"2023-08-17T20:43:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/331/libhttpserver/issues/331"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7fc0605e-e326-ea8c-2591-ceebc2e40873
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE814:376227:16A1FB1:1E9E3E9:69701198
html-safe-nonce3bd5d84709a0016ecd65733c6c418852a5855c959d927082016556c84125d88e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODE0OjM3NjIyNzoxNkExRkIxOjFFOUUzRTk6Njk3MDExOTgiLCJ2aXNpdG9yX2lkIjoiNzM5OTY4MDcyNjYxOTEzMjMxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac686216469dd1d1f682e010b73cf6edd9a8e5c378a9744f65f1b81afee86f9c05
hovercard-subject-tagissue:1855679984
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/etr/libhttpserver/331/issue_layout
twitter:imagehttps://opengraph.githubassets.com/175f2721988fe58af26b5b47aef898932f14bad5ce4268b98fb98eff70f5533b/etr/libhttpserver/issues/331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/175f2721988fe58af26b5b47aef898932f14bad5ce4268b98fb98eff70f5533b/etr/libhttpserver/issues/331
og:image:altPrerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejcphill
hostnamegithub.com
expected-hostnamegithub.com
None043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c
turbo-cache-controlno-preview
go-importgithub.com/etr/libhttpserver git https://github.com/etr/libhttpserver.git
octolytics-dimension-user_id1201536
octolytics-dimension-user_loginetr
octolytics-dimension-repository_id3416891
octolytics-dimension-repository_nwoetr/libhttpserver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3416891
octolytics-dimension-repository_network_root_nwoetr/libhttpserver
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98881eadf8ae73000970c42161c094b0809b1330
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F331
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F331
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=etr%2Flibhttpserver
Reloadhttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331
Reloadhttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331
Reloadhttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331
etr https://patch-diff.githubusercontent.com/etr
libhttpserverhttps://patch-diff.githubusercontent.com/etr/libhttpserver
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fetr%2Flibhttpserver
Fork 192 https://patch-diff.githubusercontent.com/login?return_to=%2Fetr%2Flibhttpserver
Star 942 https://patch-diff.githubusercontent.com/login?return_to=%2Fetr%2Flibhttpserver
Code https://patch-diff.githubusercontent.com/etr/libhttpserver
Issues 40 https://patch-diff.githubusercontent.com/etr/libhttpserver/issues
Pull requests 11 https://patch-diff.githubusercontent.com/etr/libhttpserver/pulls
Actions https://patch-diff.githubusercontent.com/etr/libhttpserver/actions
Projects 0 https://patch-diff.githubusercontent.com/etr/libhttpserver/projects
Wiki https://patch-diff.githubusercontent.com/etr/libhttpserver/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/etr/libhttpserver/security
Please reload this pagehttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331
Insights https://patch-diff.githubusercontent.com/etr/libhttpserver/pulse
Code https://patch-diff.githubusercontent.com/etr/libhttpserver
Issues https://patch-diff.githubusercontent.com/etr/libhttpserver/issues
Pull requests https://patch-diff.githubusercontent.com/etr/libhttpserver/pulls
Actions https://patch-diff.githubusercontent.com/etr/libhttpserver/actions
Projects https://patch-diff.githubusercontent.com/etr/libhttpserver/projects
Wiki https://patch-diff.githubusercontent.com/etr/libhttpserver/wiki
Security https://patch-diff.githubusercontent.com/etr/libhttpserver/security
Insights https://patch-diff.githubusercontent.com/etr/libhttpserver/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/etr/libhttpserver/issues/331
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/etr/libhttpserver/issues/331
[BUG] deferred_response never sends content string passed to constructorhttps://patch-diff.githubusercontent.com/etr/libhttpserver/issues/331#top
https://patch-diff.githubusercontent.com/etr
bugConfirmed bugs or reports that are very likely to be bugs.https://github.com/etr/libhttpserver/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/jcphill
https://github.com/jcphill
jcphillhttps://github.com/jcphill
on Aug 17, 2023https://github.com/etr/libhttpserver/issues/331#issue-1855679984
https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issueshttps://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues
ed0841dhttps://github.com/etr/libhttpserver/commit/ed0841d177d88dada6e21e4dd5c36f8b670c1ee0
#145https://github.com/etr/libhttpserver/pull/145
eea93bdhttps://github.com/etr/libhttpserver/commit/eea93bdf45c42ffbb487f06385ab6a7647bc0a5f
libhttpserver/test/integ/deferred.cpphttps://github.com/etr/libhttpserver/blob/d249ba682441dbb979146482aff01a7073ed165a/test/integ/deferred.cpp#L164
d249ba6https://patch-diff.githubusercontent.com/etr/libhttpserver/commit/d249ba682441dbb979146482aff01a7073ed165a
libhttpserver/test/integ/deferred.cpphttps://github.com/etr/libhttpserver/blob/d249ba682441dbb979146482aff01a7073ed165a/test/integ/deferred.cpp#L103
d249ba6https://patch-diff.githubusercontent.com/etr/libhttpserver/commit/d249ba682441dbb979146482aff01a7073ed165a
etrhttps://patch-diff.githubusercontent.com/etr
bugConfirmed bugs or reports that are very likely to be bugs.https://github.com/etr/libhttpserver/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.