Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

GETリクエストを送る際にクエリパラメータがCONTENTに残ってリクエストに失敗する #20

Closed
rymizuki opened this Issue Oct 30, 2013 · 2 comments

Comments

Projects
None yet
1 participant
Owner

rymizuki commented Oct 30, 2013

package Spec {
  use Spica::Spec::Declare;

  client {
    name 'sample';
    endpoint 'default', '/user/{username}', [qw(username token)],
    columns(
    );
  };
};

package main {
  use Spica;
  my $spica = Spica->new(
    host => 'example.com',
    spec => 'Spec',
  );
  my $iterator = $spica->fetch('sample', +{
    username => 'tarou',
    token       => 'xxxxxxxxxxxx',
  });

のようなリクエストを行った際、

GET http://example.com/user/tarou?token=xxxxxxxxxxxx

token=xxxxxxxxxxxx

のような感じになって、APIによってはリクエストを弾いちゃう。

@rymizuki rymizuki was assigned Nov 12, 2013

Owner

rymizuki commented Nov 12, 2013

GETリクエストにContentを含めるのがそもそもおかしい

@rymizuki rymizuki added a commit that referenced this issue Nov 12, 2013

@rymizuki rymizuki issues #20 fixed 7f0d0d2

@rymizuki rymizuki added a commit that referenced this issue Nov 12, 2013

@rymizuki rymizuki Checking in changes prior to tagging of version 0.04.
Changelog diff is:

diff --git a/Changes b/Changes
index c4bc44c..31ee362 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension Spica

 {{$NEXT}}

+0.04 2013-11-12T12:50:03Z
+    - fixed issues #20
+
 0.03 2013-10-22T11:43:53Z

     - to change the specifications of the trigger
c00f0ff
Owner

rymizuki commented Nov 12, 2013

fixed

@rymizuki rymizuki closed this Nov 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment