File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,7 @@ pub async fn handle_post(
519
519
) -> Result < impl IntoResponse , StatusCode > {
520
520
let content_type = headers. get ( "Content-Type" ) ;
521
521
let auth = headers. get ( "Authorization" ) ;
522
+ info ! ( "micropub post headers: {:?}" , headers) ;
522
523
523
524
if let None = auth {
524
525
return Err ( StatusCode :: FORBIDDEN ) ;
@@ -555,6 +556,7 @@ pub async fn handle_post(
555
556
error ! ( "error reading bytes from body: {:?}" , e) ;
556
557
StatusCode :: INTERNAL_SERVER_ERROR
557
558
} ) ?;
559
+ info ! ( "micropub post body: {:?}" , body_bytes) ;
558
560
// if content type is json, attempt to decode and see whether this is an action (update/delete)
559
561
// or if it's a create.
560
562
if let Some ( ct) = content_type {
@@ -565,6 +567,7 @@ pub async fn handle_post(
565
567
let json_parse_result: serde_json:: Result < serde_json:: Value > = serde_json:: from_slice ( body_byte_slice) ;
566
568
match json_parse_result {
567
569
Ok ( json) => {
570
+ info ! ( "micropub post body parsed json: {:?}" , json) ;
568
571
if let Some ( obj) = json. as_object ( ) {
569
572
match obj. get ( "action" ) {
570
573
Some ( serde_json:: Value :: String ( action) ) => {
You can’t perform that action at this time.
0 commit comments