OSDN Git Service

* Controller::API::Submission: fix post()
[newslash/newslash.git] / src / newslash_web / lib / Newslash / Web / Controller / API / Submission.pm
index 72b8d85..d6a9e30 100644 (file)
@@ -49,7 +49,7 @@ sub post {
     $params->{introtext} = $util->clean_html($allowed, $item->{introtext});
     $params->{tid} = 49; #mainpage
     $params->{action} = $data->{action} || 'preview';
-    $extra_params->{createheaders} = $c->req->headers->to_string;
+    $params->{extra_params} = { createheaders => $c->req->headers->to_string };
 
     if ($params->{action} eq 'preview') {
         my $result = {