From 8089f6ec0056b58f899112fb823736504a60a578 Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Mon, 25 Aug 2025 08:39:21 +0100 Subject: [PATCH] Better docs --- problem.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/problem.go b/problem.go index df3d91e..84c482b 100644 --- a/problem.go +++ b/problem.go @@ -26,11 +26,9 @@ // [RFC-7807]: https://datatracker.ietf.org/doc/html/rfc7807 package problem // import "go.followtheprocess.codes/problem" +// ContentType is the value for the HTTP 'Content-Type' header that signifies an RFC-7807 problem. const ContentType = "application/problem+json" -// TODO(@FollowTheProcess): See if I can do some custom marshalling/unmarshalling tricks -// to e.g. populate Type with 'about:blank' if it's empty etc. - // Problem represents an [RFC-7807] problem. // // [RFC-7807]: https://datatracker.ietf.org/doc/html/rfc7807 -- knotmirror 0.0.1